gui/macOS: Do not leak local url and error objects in edit locally job
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 26 Mar 2025 12:26:38 +0000 (13:26 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 27 Mar 2025 14:16:05 +0000 (14:16 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/fileprovidereditlocallyjob_mac.mm

index f7ebd1d281e9e662adb2a9ef162957244c66f660..28ff7fd5b237a9f9ec80b965a5405643e0f1e704 100644 (file)
@@ -87,6 +87,9 @@ void FileProviderEditLocallyJob::openFileProviderFile(const QString &ocId)
                                                    << ocId;
         emit notAvailable();
     }
+
+    [itemLocalUrl release];
+    [receivedError release];
 }
 
 } // namespace OCC::Mac